package com.xyd.entity;

import java.io.Serializable;

public class Emp implements Serializable {
    private int empno;
    private String ename;
    private Dept dept;
    private int sal;

    public Emp() {
    }

    public Emp(String ename, Dept dept, int sal) {
        this.ename = ename;
        this.dept = dept;
        this.sal = sal;
    }

    public int getEmpno() {
        return empno;
    }

    public void setEmpno(int empno) {
        this.empno = empno;
    }

    public String getEname() {
        return ename;
    }

    public void setEname(String ename) {
        this.ename = ename;
    }

    public Dept getDept() {
        return dept;
    }

    public void setDept(Dept dept) {
        this.dept = dept;
    }

    public int getSal() {
        return sal;
    }

    public void setSal(int sal) {
        this.sal = sal;
    }
}
